package com.example.DTO;


import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleDTO {
    private Integer id;//主键ID
    @NotEmpty
    private String title;//文章标题
    @NotEmpty
    private String content;//文章内容
    private String coverImg;//封面图像
    private Integer categoryId;//文章分类ID
    private Integer createUser;//创建人ID
    private Integer viewCount;//阅读量统计
    private Integer likes;//点赞数


    private String nickname;//用户昵称
    private String userPic;//用户头像
}

